package com.joelemon.mockinfluxdbdata.datamock.v2.mockunit;

import com.joelemon.mockinfluxdbdata.datamock.v2.MockValue;
import com.joelemon.mockinfluxdbdata.datamock.v2.enums.MockValueType;
import com.joelemon.mockinfluxdbdata.datamock.v2.interfaces.MockValueUnit;
import lombok.Data;

import java.util.UUID;

/**
 * @Description: 元mock- 数值类
 * 字符串类型：
 * 1. uuid
 *
 * @Author: HJY
 * @Date: 2023/11/23
 */
@Data
public class MockStringUUIDUnit extends DefaultMockValueUnit implements MockValueUnit {

    @Override
    public MockValueType[] getValueType() {
        return new MockValueType[]{MockValueType.STRING};
    }

    @Override
    public MockValue mockValue() {
        MockValue mockValue = new MockValue();
        mockValue.setStrVal(UUID.randomUUID().toString());
        return mockValue;
    }
}
